package com.lm;

import java.util.ArrayList;
import mapgenerator.Main;

/**
 *
 * @author Sajarwo Anggai
 */
public class LayerContainer {

    private ArrayList layerContainer;
    private ArrayList <String>layerMapping;
    private Main comp;
    public LayerContainer(Main comp) {
        this.comp = comp;
        layerContainer = new ArrayList();
        layerMapping = new ArrayList<String>();
    }

    public void addLayer(String name, boolean show) {
        Layer layer=new Layer(name, show);
        layer.initContainer(comp.project.getMapHeight(), comp.project.getMapWidth());
        layerContainer.add(layer);
        layerMapping.add(name);
    }

    public ArrayList getLayers() {
        return layerContainer;
    }

    public ArrayList getLayersMapping() {
        return layerMapping;
    }
}
